#ifndef FIIPRETRANSMIT_H
#define FIIPRETRANSMIT_H
#include "./fiip.h"
#include "./link/link.h"
#include "riselib/mempool.h"

#ifdef __cplusplus
extern "C" {
#endif

typedef struct {
  uint16_t index;
  uint8_t* data;
  uint16_t dataLen;
  LinkCfgStruct* link;
  uint8_t times;
  uint8_t interval;
} FiipRetransmitStruct;  //重传结构体

void fiipRetransmit_add(uint8_t* data, uint16_t dataLen, LinkCfgStruct* link);
void fiipRetransmit_transmit();
void fiipRetransmit_remove(uint16_t index);

#ifdef __cplusplus
}
#endif
#endif  // FIIPRETRANSMIT_H
